//战斗缓存
"use strict"
const mvc = require("cosjs.mvc")
const dbase = mvc.model.require("dbase");

exports.sort = function (sid) {
    let ladderSort = new dbase.sort(sid, "ladder");
    ladderSort.stamp();
    ladderSort.limit(5000);
    return ladderSort;
}

//对手 ：  uid:[1,0],[位置POS，攻击次数]
// uid 积分 攻击次数 位置
exports.player = function (sid) {
    return new dbase.gzone.cache(sid, "ladder", "json");
}

